import React from "react";
import { Fragment } from "react"
import { Link, Outlet } from "react-router-dom"
import { ConfigProvider } from 'antd'
//配置antd的汉化
import locale from 'antd/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
dayjs.locale('zh-cn');
function App () {
  return (
    <Fragment>
      <ConfigProvider
        locale={locale}
        theme={{
          token: {
            colorPrimary: 'red',
          },
        }}
      >
        <nav>
          <Link to="/about">about</Link> <br />
          <Link to="/home">home</Link> <br />
          <Link to="/home/child1">child1</Link> <br />
          <Link to="/home/child2">child2</Link> <br />
          <Link to="/notfound">notfound</Link>
        </nav>
        <Outlet />
      </ConfigProvider>
    </Fragment>
  );
}

export default App;